var scripts = document.getElementsByTagName("script")
var script = scripts[scripts.length - 1];
strJsPath = document.querySelector ? script.src : script.getAttribute("src", 4)//IE8直接.src
var index = strJsPath.lastIndexOf("\/");  
var str  = strJsPath.substring(0,index + 1);
let configPath = str+'config.js'
let browserPath = str+'browser.js'
//先读配置文件
document.write("<s"+"cript type='text/javascript' src='"+configPath+"'></scr"+"ipt>")
//再读浏览器检测
document.write("<s"+"cript type='text/javascript' src='"+browserPath+"'></scr"+"ipt>")
